951089810437a0cdab593aa0ad6fba315be5ecb0,src/main/java/water/fvec/createInteractions.java,createInteractions,compute2,#,25

Before Change


      String[] domain = pass1._domain;

      // Create a new Vec based on the domain
      Vec interaction = _out.anyVec().makeZero(domain);
      String name = _ci.source._names[idx1] + "_" + _ci.source._names[idx2];
      _out.add(name, interaction);

After Change


      createInteractionDomain pass1 = new createInteractionDomain(idx1, idx2).doAll(_out);

      // Create a new Vec based on the domain
      _out.add(_out._names[idx1] + "_" + _out._names[idx2], _out.anyVec().makeZero(makeDomain(pass1._unsortedMap, idx1, idx2)));
      _out.update(_job);

      // Create array of enum pairs, in the same (sorted) order as in the _domain map -> for linear lookup